package com.example.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.mdao.UserMapper;
import com.example.model.jdao.UserDao;
import com.example.pojo.User;

@Service
public class UserService {
@Autowired
private UserDao dao;
@Autowired
private UserMapper mapper;
   //查询
public List<User> findall() {
	return (List<User>) dao.findAll();

}
//登录验证
public User login(String acid,String password) {
	return mapper.login(acid, password);
	
}
}
